#ifndef _SDRAM_SDR_DEFINE_H
#define _SDRAM_SDR_DEFINE_H

#include "SDRAM_define.h"

typedef unsigned	SDRAM_SDR_data_t;

struct SDRAM_SDR_mode_register_t
{
	bool		write_burst;
	unsigned	CAS_latency;
	bool		burst_type;
	unsigned	burst_length;
};

const SDRAM_bitwidth_t	SDR_EXT_BITWIDTH_MODULE		= 32;
const SDRAM_bitwidth_t	SDR_EXT_BITWIDTH_COMPONENT	= 8;

const SDRAM_num_t		SDR_DEFAULT_BANK_NUM		= 4;
const SDRAM_num_t		SDR_DEFAULT_ROW_NUM			= 8192;
const SDRAM_num_t		SDR_DEFAULT_COL_NUM			= 1024;

const unsigned			SDR_DEFAULT_CL				= 3;
const unsigned			SDR_DEFAULT_tRCD			= 3;
const unsigned			SDR_DEFAULT_tRP				= 3;
const unsigned			SDR_DEFAULT_tRFC			= 120;

const unsigned			SDR_DEFAULT_BURST_LENGTH	= 4;
const unsigned			SDR_FULL_PAGE_BURST_LENGTH	= 1024;

#endif
